<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/font-awesome-4.7.0/css/font-awesome.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div class="txtcenter" style="margin:0 auto;padding-top:10px;">
    <form class="layui-form layui-form-pane" action="" autocomplete="off">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">客户名称</label>
                <div class="layui-input-inline">
                    <input type="text" id="customerName" name="customerName" placeholder="请输入客户名称" class="layui-input" />
                </div>
                <label class="layui-form-label">手机号码</label>
                <div class="layui-input-inline">
                    <input type="text" id="telephone" name="telephone" placeholder="请输入手机号码" class="layui-input" />
                </div>
                <label class="layui-form-label">电子邮箱</label>
                <div class="layui-input-inline">
                    <input type="text" id="email" name="email" placeholder="请输入电子邮箱" class="layui-input" />
                </div>
                <label class="layui-form-label">传真</label>
                <div class="layui-input-inline">
                    <input type="text" id="fax" name="fax" placeholder="请输入传真" class="layui-input" />
                </div>
                <label class="layui-form-label">状态</label>
                <div class="layui-input-inline">
                    <select id="enabled" name="enabled">
                        <option value="">全部</option>
                        <option value="1">启用</option>
                        <option value="2">禁用</option>
                    </select>
                </div>
                <button type="reset" class="layui-btn layui-btn-primary list-form-search">重置</button>
                <button class="layui-btn list-form-search" lay-submit lay-filter="formSearch">搜索</button>
            </div>
        </div>
    </form>
</div>
<div class="winui-toolbar">
    <div class="winui-tool">
        <button id="reloadTable" class="winui-toolbtn"><i class="fa fa-refresh" aria-hidden="true"></i>刷新数据</button>
        <button id="addBean" class="winui-toolbtn" auth="1569133160398"><i class="fa fa-plus" aria-hidden="true"></i>新增客户</button>
    </div>
</div>
<div style="margin:auto 10px;">
    <table id="messageTable" lay-filter="messageTable"></table>

    <script type="text/html" id="tableBar">
        {{# if(d.enabled == 2 && auth('1569133183801')){ }}
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        {{# } }}
        {{# if(d.enabled == 2 && auth('1569133170572')){ }}
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
        {{# } }}
        {{# if(d.enabled == 1 && auth('1569133203641')){ }}
        <a class="layui-btn layui-btn-xs" lay-event="unenabled">禁用</a>
        {{# } }}
        {{# if(d.enabled == 2 && auth('1569133194236')){ }}
        <a class="layui-btn layui-btn-xs" lay-event="enabled">启用</a>
        {{# } }}
    </script>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
<script src="../../assets/lib/layui/custom.js"></script>
<script type="text/javascript">
    layui.config({base: '../../js/customer/'}).use('customerlist');
</script>
</body>
</html>